home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Resource / c / Init next >
Text File  |  1995-07-10  |  1KB  |  41 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Resource.c
  12.     Author:  Copyright © 1992 Jason Williams
  13.     Version: 1.01 (06 May 1993)
  14.     Purpose: Resource file (files within user application directory)
  15.              management functions
  16. */
  17.  
  18.  
  19. #include <string.h>
  20. #include "DeskLib:Resource.h"
  21. #include "DeskLib:Str.h"
  22.  
  23. #ifdef _DeskLib_SDLS
  24. #include "DLLLib.dll.h"
  25. #endif
  26.  
  27. extern void Resource_Initialise(char *respath)
  28. {
  29. #ifdef _DeskLib_SDLS
  30.   char    *dllname = strdup( respath);
  31.   if ( dllname)  dll_nameApp( dllname);
  32.   /* So that the application's name is displayed and used by the DLLManager    */
  33. #endif
  34.  
  35.   resource_pathname[0] = '<';
  36.   strncat(resource_pathname, respath, 23);
  37.   resource_pathname[24] = '\0';               /* Ensure string is terminated */
  38.   strcat(resource_pathname, "$Dir>.");
  39.   
  40. }
  41.